﻿using AcademiaInteligenteData;
using AcademiaInteligenteData.DAL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AcademiaInteligenteData.BLL
{
    public class BoPlaylist
    {
        public void InserirPlaylist(Playlist playlist)
        {
            DaoPlaylist daoPlaylist = new DaoPlaylist();
            daoPlaylist.InserirPlaylist(playlist);
        }
        public void AlterarPlaylist(Playlist playlist)
        {
            DaoPlaylist daoPlaylist = new DaoPlaylist();
            daoPlaylist.AlterarPlaylist(playlist);
        }
        public void ExcluirPlaylist(int id)
        {
            DaoPlaylist daoPlaylist = new DaoPlaylist();
            daoPlaylist.ExcluirPlaylist(id);
        }
        public Playlist SelecionarPlaylistPorID(int id)
        {
            DaoPlaylist daoPlaylist = new DaoPlaylist();
            return daoPlaylist.SelecionarPlaylistPorID(id);
        }
       
        public List<Playlist> SelecionarPlaylistPorAmbiente(int idAmbiente)
        {
            return new DaoPlaylist().SelecionarPlaylistPorAmbiente(idAmbiente);
        }

        public List<Playlist> ListarPlaylist()
        {
            DaoPlaylist daoPlaylist = new DaoPlaylist();
            return daoPlaylist.ListarPlaylist();
        }
    }
}
